adTempus API
PreviousUpNext
ISpecifyTimeCriterion::Item Method

Retrieves the specified item

C++
HRESULT Item(long index, [out, retval] VARIANT * pVal);
C#
Item(long index, [out, retval] VARIANT pVal);
Visual Basic
Sub Item(index As long, pVal As [out, retval] VARIANT)
Parameters 
Description 
[in] long index 
The ordinal of the item to retrieve. The collection is 0-based: valid ordinals range from 0 to Count-1. 
[out, retval] VARIANT * pVal 
The requested item, or NULL if the method fails 

If the ordinal is invalid the method fails with error ADT_E_NOT_FOUND. 

An existing item cannot be modified in the collection. To change a value you must remove it and re-add it.

adTempus API Reference version 3.0.0.0, revised 10/30/2008